/*
 * Copyright 2025 The JA-SIG Collaborative. All rights reserved.
 * distributed with this file and available online at
 */
package com.lap.auth.adapter.driving.persistence.role.mapper;

import com.lap.auth.adapter.driving.persistence.role.po.RolePo;
import java.util.List;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface RoleMapper {

  void insert(RolePo rolePo);

  int deleteByPrimaryKey(@Param("id") Integer id);

  RolePo selectByCode(@Param("code") String code);

  List<RolePo> selectByIds(@Param("list") List<Integer> list);

  RolePo selectByPrimaryKey(@Param("id") Integer id);

  int updateByPrimaryKey(RolePo rolePo);
}
